package com.typhoon.spring_shiro.dao.ha;

import java.io.Serializable;
import java.util.Date;

/**
 * 负载均衡用的Node健康值Bean
 *
 * @author zhangshsh 2016-02-23 作成
 */
public class NodeHealthValueBean implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * Node index
     */
    private int nodeIndex = -1;

    /**
     * Node健康值
     */
    private int healthValue = 0;

    /**
     * Node健康值的最后更新时间
     */
    private Date lastUpdate = new Date();

    public int getNodeIndex() {
        return nodeIndex;
    }

    public void setNodeIndex(int nodeIndex) {
        this.nodeIndex = nodeIndex;
    }

    public int getHealthValue() {
        return healthValue;
    }

    public void setHealthValue(int healthValue) {
        this.healthValue = healthValue;
    }

    public Date getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

}
